package cn.iocoder.yudao.module.scrm.controller.admin.order.vo;

import cn.iocoder.yudao.module.scrm.controller.admin.commom.vo.FileInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 订单新增/修改 Request VO")
@Data
public class OrderSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2907")
    private Integer id;

    @Schema(description = "订单标题")
    @NotNull(message = "订单标题不能为空")
    private String title;

    @Schema(description = "关联客户id", example = "4499")
    @NotNull(message = "关联客户id不能为空")
    private Integer customerId;

    @Schema(description = "关联产品id", example = "11358")
    private Integer productId;

    @Schema(description = "订单总金额-关联产品后订单金额显示为产品报价总金额；但是可以修改。")
    @NotNull(message = "订单总金额不能为空")
    @DecimalMin (value = "0.00", message = "金额必须为大于或者等于0.00")
    @Digits(integer = 12, fraction = 2, message = "金额只能有12个整数和两位小数")
    private BigDecimal orderTotalMoney;

    @Schema(description = "签单日期")
    private LocalDateTime signingDate;

    @Schema(description = "订单类型  scrm_order_type", example = "1")
    private String orderType;

    @Schema(description = "开始日期")
    private LocalDateTime startDate;

    @Schema(description = "到期日期")
    private LocalDateTime expireDate;

    @Schema(description = "客户签约人")
    private String clientSignatory;

    @Schema(description = "我方签约人")
    private String ourSignatory;

    @Schema(description = "付款方式   scrm_payment_method")
    private String paymentMethod;

    @Schema(description = "备注信息", example = "随便")
    @Size(message = "备注信息-不能超过1000个字符",max = 1000)
    private String remark;

    @Schema(description = "系统编号")
    private String systemNumber;

    @Schema(description = "归属人员id", example = "14003")
    @NotNull(message = "归属人员id不能为空")
    private String ownerUserId;

    @Schema(description = "前归属人员id", example = "30080")
    private String oldOwnerUserId;

    @Schema(description = "审批流id", example = "1371")
    private String instanceId;

    @Schema(description = "订单是否提交审批    0未提交  1已提交")
    private String instanceIfSubmit;

    @Schema(description = "审批状态-绑定流程表的审批状态")
    private String instanceState;

    /*@Schema(description = "附件url", example = "https://www.iocoder.cn")
    private List<OrderFileListVo> fileUrl;

    @Schema(description = "图片-附件url", example = "https://www.iocoder.cn")
    private List<OrderFileListVo> pictureAttachment;*/

    @Schema(description = "附件url", example = "https://www.iocoder.cn")
    private List<FileInfoVO> fileUrl;

    @Schema(description = "图片-附件url", example = "https://www.iocoder.cn")
    private List<FileInfoVO> pictureAttachment;


    @Schema(description = "备用字段-")
    private  String vField;



}